<template>
  <div class="todo-container">
    <img :src="item.imgurl" alt="">
    <div class="column-style">
      <span>{{ item.name }}</span>
      <p>{{ number }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
      default() {
        return {}
      }
    },
    number: {
      type: [Number, String],
      default: 0
    }
  }
}
</script>

<style lang="scss" scoped>
.todo-container {
  p {
    margin: 0;
  }
  display: flex;
  align-items: center;
  img {
    width: 52px;
    height: 52px;
  }
  .column-style {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    span {
      font-size: 14px;
      color: #777777;
      padding-bottom: 3px;
    }
    p {
      font-size: 24px;
      font-weight: 600;
      color: #333333;
    }
  }
}
</style>
